@import '../common';

@keyframes scaleOut {
  0% {
    transform-origin: left bottom;
    transform: scale(0);
  }
  100% {
    transform-origin: left bottom;
    transform: scale(1);
  }
}

.YunDouTalk {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  width: calc(320px + 40px + 8px);
  height: auto;
}

.YunDouIcon {
  position: relative;
  width: 40px;
  height: 40px;
  background-image: url('https://img.alicdn.com/tfs/TB1BgBPYQL0gK0jSZFtXXXQCXXa-72-72.png');
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center center;
  margin-right: 8px;
}

$yunDouMessageRadius: 24px;
.YunDouMessage {
  position: relative;
  width: 320px;
  max-height: 320px;
  overflow-y: auto;
  @include removeScrollBarStyle;
  padding: 24px;
  padding-right: 16px;
  box-sizing: border-box;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.36);
  background-image: linear-gradient(180deg, #68bbf2 0%, #85ceff 100%);
  border-top-left-radius: $yunDouMessageRadius;
  border-top-right-radius: $yunDouMessageRadius;
  border-bottom-right-radius: $yunDouMessageRadius;
  transform-origin: left bottom;
  transform: scale(0);
  // animation: scaleOut .3s ease-in-out forwards;
  animation: msgBounceIn 0.3s forwards;

  .YunDouMessageTitle {
    font-size: 18px;
    color: #fff;
    letter-spacing: 0;
    line-height: 30px;
    margin-bottom: 16px;
  }

  .YunDouMessageContent {
    font-size: 14px;
    color: #fff;
    letter-spacing: 0;
    line-height: 22px;
  }

  img {
    display: inline-block;
    width: 100%;
    margin: 16px 0;
  }
}

.YunDouMessageShine {
  height: 320px;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center bottom;
  background-image: url('https://img.alicdn.com/tfs/TB1Jj4gk7cx_u4jSZFlXXXnUFXa-640-640.png');
}
